<!-- 车辆基本信息报表 -->
<!DOCTYPE>
<html>

<head>
    <%- include ../taglib/layout-report.ejs %>

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content" style="padding:5px">
    <div class="row animated fadeInDown">
        <div class="col-sm-3">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>客户数据</h5>
                </div>
                <div class="ibox-content  pre-scrollable">
                    <div id='external-events'>
                        <ul id="kindTree" class="ztree">
                        </ul>
                    </div>
                </div>
            </div>

        </div>
        <div class="col-sm-9 clearfix" style="padding-left:5px">
            <div class="row">
                <div class="col-sm-12">
                    <div class="ibox float-e-margins ">
                        <div class="ibox-title">
                            <h5>车辆基本信息报表</h5>

                            <div class="ibox-tools">
                                <a class="collapse-link">
                                    <i class="fa fa-chevron-up"></i>
                                </a>
                            </div>
                        </div>
                        <div class="ibox-content">
                            <div class="row">
                                <div class="pull-right">
                                    <form role="form" class="form-inline ">


                                        <div class="input-group div-serch-input">
                                            <span class="input-group-btn">
                                                <button type="button" class="btn btn btn-primary" onclick="outexcel()"><i
                                                            class="fa  fa-file-excel-o"></i> 导出
                                            </button>

                                            </span>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>

<%- include ../taglib/layout-content.ejs %>


<script type="text/javascript">

    var urlTree;
    var map="";
    $(function () {

        var url = '/tree/dept';
        init_tree('id', 'parentId', 'name',  fnClick,"", "");
        loadMyTree(url);

    });
    //    树节点选中
    var fnClick = function (event, treeId, treeNode) {
        debugger;
        selectTreeNode(treeNode);

    }

    //    复选框选中
    function selectTreeNode(treeNode) {

        $("#h_c_car_id").val(treeNode.id);

    }


    function outexcel() {
        debugger;
        var carId = $("#h_c_car_id").val();
        window.open("<%= serverurl%>/report/exportCarsExcel?carId="+carId)
    }
</script>
<input type="hidden" id="h_c_car_id">

</body>

</html>
